<html>
<head>
    <title>add</title>
</head>
<body>
<div style="width: 800px">
    <form id="forms" class="form-horizontal" role="form">
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">角色名称:</label>
            <div class="col-sm-4">
                <input type="text" class="form-control" id="firstname" placeholder="请输入角色名称" name="roleName">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">菜单权限:</label>
            <div class="col-sm-4">
                <ul id="treeDemo" class="ztree"></ul>
            </div>
        </div>
    </form>
</div>
<SCRIPT type="text/javascript">
    var setting = {
        data: {
            simpleData: {
                enable: true
            }
        }, async: {
            enable: true,
            url: "/Resources/showresource"
        }, check: {
            enable: true,
            autoCheckTrigger: true
        },
    };
    $(document).ready(function () {
        $.fn.zTree.init($("#treeDemo"), setting);
    });
</SCRIPT>
</body>
</html>
